

mylist = [word for word in ['red', 'blue', 'red', 'green', 'blue', 'blue']]

def method_one(mylist):
    mydict = {}
    myset = set(mylist)
    for word in myset:
        n = mylist.count(word)
        print('%s has found %s times.' % (word,n))
        mydict.update({word:n})
    return mydict
    

def method_two(mylist):
    from collections import Counter
    c = Counter(mylist)
    print(c)


mycount = method_two(mylist)
mydict = method_one(mylist)
print(mydict)
